﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class BLL_tbl_shipping_form
{
    public BLL_tbl_shipping_form()
    {

    }

    public List<tbl_shipping_form> select(int ID)
    {
        DAL_tbl_shipping_form dal = new DAL_tbl_shipping_form();
        return dal.select(ID);
    }

    public List<tbl_shipping_form> selectAll()
    {
        DAL_tbl_shipping_form dal = new DAL_tbl_shipping_form();
        return dal.selectAll();
    }

    public bool insert(tbl_shipping_form tbl)
    {
        DAL_tbl_shipping_form dal = new DAL_tbl_shipping_form();
        int i = 0;
        i = dal.insert(
            tbl.Work_Order_Number
, tbl.Drum_Bag_Number
, tbl.Actual_Quantity_from_QC_Sicomill
, tbl.Shipping_Date
, tbl.PO_Number
, tbl.Shipping_Method
, tbl.Shipping_Vessel
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_shipping_form tbl)
    {
        DAL_tbl_shipping_form dal = new DAL_tbl_shipping_form();
        int i = 0;
        i = dal.update(
            tbl.ID
, tbl.Work_Order_Number
, tbl.Drum_Bag_Number
, tbl.Actual_Quantity_from_QC_Sicomill
, tbl.Shipping_Date
, tbl.PO_Number
, tbl.Shipping_Method
, tbl.Shipping_Vessel
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_shipping_form tbl)
    {
        DAL_tbl_shipping_form dal = new DAL_tbl_shipping_form();
        int i = 0;
        i = dal.delete(
                tbl.ID
        );

        return Convert.ToBoolean(i);
    }


}

